﻿@model Guid

@section Styles{}

@section Scripts{
    <input type="hidden" value='@Html.Raw(ViewData["power"])' id="hidden_power" />
    <input type="hidden" value='@Model' id="hidden_id" />
    <!--引入 wangEditor js-->
    <script src="~/libs/wangEditor.min.js"></script>
    <script src="~/services/Base/Member/indexService.js"></script>
}

<div id="app" v-cloak class="pl-20 pr-20 pb-100">
    <el-row :gutter="15">
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <h4>编号:</h4>
            <el-input v-model="vm.form.number" placeholder="请输入" />
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <h4>会员名称:</h4>
            <el-input v-model="vm.form.name" placeholder="请输入" />
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <h4>联系电话:</h4>
            <el-input v-model="vm.form.phone" placeholder="请输入" />
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <h4>生日:</h4>
            <el-date-picker type="date" placeholder="请选择 生日" v-model="vm.form.birthday" format="yyyy 年 MM 月 dd 日"
                value-format="yyyy-MM-dd" class="w100"></el-date-picker>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <h4>性别:</h4>
            <el-radio v-model="vm.form.sex" label="男">男</el-radio>
            <el-radio v-model="vm.form.sex" label="女">女</el-radio>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <h4>账户:</h4>
            <el-input placeholder="请输入内容" v-model="vm.sysUser.name" disabled>
                <el-button slot="prepend" icon="el-icon-search" @@click="findBack_User()"></el-button>
                <el-button slot="append" icon="el-icon-close" @@click="findBack_User(1)" class="text-danger">
                </el-button>
            </el-input>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
            <el-row :gutter="15">
                <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
                    <h4>头像:</h4>
                    <input type="file" @@change="photoChange" />
                    <br />
                    <img width="150" class="rounded" :src="vm.form.photo" v-show="vm.form.photo" />
                </el-col>
                <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
                    <h4>文件:</h4>
                    <input type="file" @@change="fielsChange" multiple="multiple" />
                    <ul class="list-group">
                        <li class="list-group-item" v-for="(item,index) in FilesName" :key="index">
                            <a :href="item" target="_blank">{{item}}</a>
                        </li>
                    </ul>
                </el-col>
            </el-row>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
            <h4>简介:</h4>
            <div id="editor"></div>
        </el-col>

    </el-row>
    <div class="hzy-admin-window-footer">
        <div style="flex: 1 1 0%"></div>
        <div class="p-10">
            <el-button type="primary" @@click="saveForm" :loading="loading">提交</el-button>
            <el-button type="danger" @@click="closeWindow">关闭</el-button>
        </div>
    </div>
</div>